var uid, ws, spage, aid;
document.addEventListener('plusready',function(){
	uid = plus.storage.getItem('uid');
	ws = plus.webview.currentWebview();
	spage = ws.spage;
	aid = ws.aid;//提醒id
	var wlist = plus.storage.getItem('warnlist');
	var data = $.parseJSON(wlist); 
	$.each(data, function(k,v) {
		if(v.id == aid){
			plus.nativeUI.closeWaiting();
//			console.log(JSON.stringify(v)); 
			$('.doctor').text(v.doctor);
			var str = '';
			if(v.time == '饭前' && v.num == '一天两次'){
				str += '07:30　17:30';
			}else if(v.time == '饭后' && v.num == '一天两次'){
				str += '08:30　18:30';
			}else if(v.time == '饭前' && v.num == '一天三次'){
				str += '07:30　11:30　17:30';
			}else if(v.time == '饭后' && v.num == '一天三次'){
				str += '08:30　12:30　18:30';
			}
			$('.line-h-25').text(str);//吃药时间
			$('.notice').val(v.eatnotice+","+v.runnotice);
		}
	})
	
})